package com.ruoyi.business.service;

import com.alibaba.fastjson.JSONObject;
import com.ruoyi.bizsys.domain.CustBindCardLog;
import com.ruoyi.bizsys.domain.CustomerInfo;
import com.ruoyi.business.domain.BankVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author: Jamnsin
 * @Date: 2021/3/24 10:31 上午
 */
public interface IBankCardService {

    /**
     * 获取payStackCode
     * @return
     */
    List<BankVO> getPayStackCode();

    JSONObject getBindAuthUrl();

    JSONObject verifyTransaction(CustBindCardLog p);

    List<CustBindCardLog> getBindRecords();

    void dealBindSuccess(CustBindCardLog bindLog, JSONObject apiRes);

    String getBankCode(String bankName);

    void startPolling(CustBindCardLog custBindCardLog);

    /**
     * 绑卡策略检查
     */
    void cardStrategyCheck();

    /**
     * 客户需要绑卡数量
     * 风控绑卡标识 - 有效绑定卡数量
     * @param customerInfo
     * @return
     */
    int custNeedBindCardNum(CustomerInfo customerInfo);

    BigDecimal getLoanQuotaRatio(CustomerInfo customerInfo);
}
